﻿

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;


public class BLL_tbl_mills_master
{
    public BLL_tbl_mills_master()
    {

    }

    public List<tbl_mills_master> select(String MILL_ID)
    {
        DAL_tbl_mills_master dal = new DAL_tbl_mills_master();
        return dal.select(MILL_ID);
    }

    public List<tbl_mills_master> selectAll()
    {
        DAL_tbl_mills_master dal = new DAL_tbl_mills_master();
        return dal.selectAll();
    }

    public bool insert(tbl_mills_master tbl)
    {
        DAL_tbl_mills_master dal = new DAL_tbl_mills_master();
        int i = 0;
        i = dal.insert(
            tbl.MILL_TYPE
, tbl.IS_ACTIVE
, tbl.CREATED_BY
, tbl.CREATED_DATE
        );

        return Convert.ToBoolean(i);
    }


    public bool update(tbl_mills_master tbl)
    {
        DAL_tbl_mills_master dal = new DAL_tbl_mills_master();
        int i = 0;
        i = dal.update(
            tbl.MILL_ID
, tbl.MILL_TYPE
, tbl.IS_ACTIVE
, tbl.MODIFIED_BY
, tbl.MODIFIED_DATE
            );

        return Convert.ToBoolean(i);
    }


    public bool delete(tbl_mills_master tbl)
    {
        DAL_tbl_mills_master dal = new DAL_tbl_mills_master();
        int i = 0;
        i = dal.delete(
                tbl.MILL_ID
        );

        return Convert.ToBoolean(i);
    }


}

